<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="format-detection" content="telephone=no">
    <meta name="format-detection" content="email=no">
    <script src="../assets/flexible/flexible.debug.js"></script>
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>品牌茶集成馆</title>
    <link rel="stylesheet" href="../css/reset.css">
    <link rel="stylesheet" href="../css/brand.css">
    <link rel="stylesheet" href="../assets/swiper/css/swiper.min.css">
    <link rel="stylesheet" href="../assets/font/iconfont.css">
</head>

<body>

    <header class="header">
        <div class="iconfont left index">&#xe607;返回</div>
        <div class="center">品牌茶集成馆</div>
        <div class="right"></div>
    </header>
    <main class="main">
        <script type="text/html" id="template">
            {{each str v}}
            <div class="column">
                <img src="{{v.img}}">
                <p class="title">{{v.title}}<span>{{v.span}}</span></p>
                <p class="summary">{{v.summary}}</p>
            </div>
            {{/each}}
        </script>
    </main>
    <script src="../assets/jquery/jquery-3.2.1.min.js"></script>
    <script src="../js/index.js"></script>
    <script src="../assets/swiper/js/swiper.min.js"></script>
    <script src="../assets/artTemplate/template-web.js"></script>
    <script>
        jQuery(function ($) {
            $.ajax({
                type: "GET",
                url: "../json/brand.json",
                dataType: 'json',
                success: function (data) {
                    var arr = template('template', {
                        str: data
                    });
                    $('.main').html(arr);
                }
            })
        })
        $('.index').click(function () {
            location.href = "../index.html"
        })
    </script>
</body>

</html>